module.exports = {
  outputDir: 'dist',

  devServer: {
    host: 'localhost',
    port: 8080, 
    proxy: { 
      '/api': {
        target: 'http://localhost:8080',
        changeOrigin:true,                  //改变源
        ws:true,                            //是否代理websockets
        pathRewrite: {
          '^/api': '/mock'
        }
      }
    }
  },

  lintOnSave: false
}